package com.bigzero.workflow.modules.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bigzero.workflow.modules.system.entity.RoleEntity;
import com.bigzero.workflow.modules.system.query.RoleQuery;
import com.bigzero.workflow.modules.system.vo.RoleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 角色dao
 * @Author: fanxinxiong
 * @Date: 2025-02-11 14:48:00
 */
@Mapper
public interface RoleDao extends BaseMapper<RoleEntity>{

    List<String> getRoleCodeByUserCode(String userCode);

    List<String> getUserCodeByRoleCode(String roleCode);

    /**
     * 角色分页列表
     *
     * @param roleQuery 参数
     * @return 列表
     */
    List<RoleVo> queryPage(@Param("roleQuery") RoleQuery roleQuery);
}
